<template>
  <div class="page case">
    <div id="map" class="map"></div>
    <div class="page-container">
      <el-row :gutter="15" type="flex" style="width: 100%;height:calc(100%/3*2 - 10px);margin: 0">
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="年度调解数据">
              <AnnualMediationData />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="联防联控">
              <JointPreventionAndControl />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="10" class="col">
          <el-row class="row">
            <TopNumber />
          </el-row>
          <el-row class="row">
            <Card title="案件实时信息">
              <CaseInformation />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="案件类型分析">
              <CaseType />
            </Card>
          </el-row>
        </el-col>
      </el-row>
      <el-row :gutter="15" type="flex" style="width: 100%;height:calc(100%/3 - 10px);margin: 0">
        <el-col :span="24">
          <Card title="案件时间分布">
            <CaseTime />
          </Card>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
import Card from '@/components/Card.vue'
import AnnualMediationData from '@/components/Case/AnnualMediationData.vue'
import JointPreventionAndControl from '@/components/Case/JointPreventionAndControl.vue'
import TopNumber from '@/components/Case/TopNumber.vue'
import CaseInformation from '@/components/Case/CaseInformation.vue'
import CaseType from '@/components/Case/CaseType.vue'
import CaseTime from '@/components/Case/CaseTime.vue'

export default {
  components: { CaseTime, CaseType, CaseInformation, TopNumber, JointPreventionAndControl, AnnualMediationData, Card }

}
</script>
<style lang="scss" scoped>
.page.case{
  .map{
    width: 100%;
    height: calc(100% - 60px);
    z-index: 0;
    position: absolute;
    left: 0;
    top: 60px;
  }
  .page-container{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .col{
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      .row{
        width: 100%;
        height:100%;
      }
    }
    .col:nth-child(1){
      .row{
        height: calc(100%/3*2 - 10px);
      }
      .row:nth-child(2){
        height: calc(100%/3 - 10px);
      }
    }
    .col:nth-child(2){
      .row{
        height: calc(100%/3*0.8 - 10px);
      }
      .row:nth-child(2){
        height: calc(100%/3*2.2 - 10px);
      }
    }
  }
}
</style>
